import { ColumnGroupType, ColumnType } from "antd/es/table"

import { renderNullableValue } from "./venueProfitAndLoss"

const memberExpectedReport = (newFormat: (arg: string) => string): Record<string, ColumnGroupType<any> | ColumnType<any>> => ({
	memberExpectedStaticsDate: {
		key: "staticsDate",
		dataIndex: "staticsDate",
		width: 120,
		render: renderNullableValue("staticsDate"),
		title: newFormat("report.member_expected_statics_date"),
		align: "center",
		fixed: false
	},
	memberExpectedMemberAccount: {
		key: "memberAccount",
		dataIndex: "memberAccount",
		width: 120,
		render: renderNullableValue("memberAccount"),
		title: newFormat("report.member_expected_member_account"),
		align: "center",
		fixed: false
	},
	memberExpectedProxyAccount: {
		key: "proxyAccount",
		dataIndex: "proxyAccount",
		width: 120,
		render: renderNullableValue("proxyAccount"),
		title: newFormat("report.member_expected_proxy_account"),
		align: "center",
		fixed: false
	},
	memberExpectedTopProxyAccount: {
		key: "topProxyAccount",
		dataIndex: "topProxyAccount",
		width: 120,
		render: renderNullableValue("topProxyAccount"),
		title: newFormat("report.member_expected_top_proxy_account"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmount: {
		key: "rebateAmount",
		dataIndex: "rebateAmount",
		width: 120,
		render: renderNullableValue("rebateAmount"),
		title: newFormat("report.member_expected_rebate_amount"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmountDxClub: {
		key: "rebateAmountDxClub",
		dataIndex: "rebateAmountDxClub",
		width: 120,
		render: renderNullableValue("rebateAmountDxClub", "$"),
		title: newFormat("report.member_expected_rebate_amount_dx_club"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmountZr: {
		key: "rebateAmountZr",
		dataIndex: "rebateAmountZr",
		width: 120,
		render: renderNullableValue("rebateAmountZr", "$"),
		title: newFormat("report.member_expected_rebate_amount_zr"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmountTy: {
		key: "rebateAmountTy",
		dataIndex: "rebateAmountTy",
		width: 120,
		render: renderNullableValue("rebateAmountTy", "$"),
		title: newFormat("report.member_expected_rebate_amount_ty"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmountCp: {
		key: "rebateAmountCp",
		dataIndex: "rebateAmountCp",
		width: 120,
		render: renderNullableValue("rebateAmountCp", "$"),
		title: newFormat("report.member_expected_rebate_amount_cp"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmountQp: {
		key: "rebateAmountQp",
		dataIndex: "rebateAmountQp",
		width: 120,
		render: renderNullableValue("rebateAmountQp", "$"),
		title: newFormat("report.member_expected_rebate_amount_qp"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmountDj: {
		key: "rebateAmountDj",
		dataIndex: "rebateAmountDj",
		width: 120,
		render: renderNullableValue("rebateAmountDj", "$"),
		title: newFormat("report.member_expected_rebate_amount_dj"),
		align: "center",
		fixed: false
	},
	memberExpectedRebateAmountDy: {
		key: "rebateAmountDy",
		dataIndex: "rebateAmountDy",
		width: 120,
		render: renderNullableValue("rebateAmountDy", "$"),
		title: newFormat("report.member_expected_rebate_amount_dy"),
		align: "center",
		fixed: false
	}
})

export default memberExpectedReport
